package cn.yunyichina.provider.sys.dao;

import cn.yunyichina.provider.framework.page.PageInfo;
import cn.yunyichina.provider.sys.entity.DeptUserRelation;
import cn.yunyichina.provider.sys.entity.OrgUser;
import org.springframework.stereotype.Repository;
import cn.yunyichina.provider.framework.annotation.MyBatisRepository;
import cn.yunyichina.provider.framework.mvc.dao.BaseDao;

import java.util.List;

/**
*
* @Author auto_gen_by_tool
* @CreatedTime 2018-01-26 09:31:07
*/
@Repository
@MyBatisRepository
public interface OrgUserDao extends BaseDao<cn.yunyichina.provider.sys.entity.OrgUser>{

    /**
     * 获取部门下的账户
     * @param wheres
     * @return
     */
    List<OrgUser> listAccountByDept(DeptUserRelation wheres, PageInfo pageInfo);
    Long selectCountAccountByDept(DeptUserRelation wheres);
}